<template>
  <div>
    <div class="header">
      <van-icon class="arrow-left" name="arrow-left" @click="goBack" />
      <span> {{ title }} </span>
    </div>
  </div>
</template>
<script>
export default {
  props: ["title"],
  methods: {
    // 返回
    goBack() {
      this.$router.back();
    },
  },
};
</script>

<style lang="scss" scoped>
.header {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 70px;
  .arrow-left {
    position: absolute;
    left: 0px;
    font-size: 48px;
  }
  span {
    font-size: 40px;
  }
}
</style>
